package director;

import structural.adapter.*;

public class AdapterDirector {

    public static void main(String[] args) {
        //继承方式的适配器
        MyInterface myInterface = new Adapter();
        myInterface.doSomething();
        //组合方式的适配器
        OuterInterface adaptee = new Adaptee();
        MyInterface adapter = new CompositeAdapter(adaptee);
        adapter.doSomething();
    }
}
